
import React from 'react'
import {Router, Route, Link, IndexRoute, hashHistory} from 'react-router'
import Login from 'components/Login/login.js'
import Show from 'components/show-data/show.js'
import facility from 'components/show-data/facility/facility.js'
import market from 'components/show-data/sell/market.js'
import NoAssets from 'components/No/NoAssets.js'

const App = React.createClass({
	render(){
		return(	
			<div className="app-content">
  			{ this.props.children }
			</div>
     )
	}
}); 
      
export default ()=>
    <Router history={hashHistory}>
      <Route path="/" component={App}>
        <IndexRoute component={Login}/>
        <Route path="/show-data" component={Show}>
          <IndexRoute  component={market}/>
          <Route path='facility' component={facility}/>
        </Route>
        <Route path='*' component={NoAssets} />
      </Route>
    </Router>
